package com.resou.reader.api.entry;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ${Garrett} on 2018/9/29.
 * Contact me krouky@outlook.com
 */
public class SortSecBean implements Parcelable {

    /**
     * secCategoryId : 20093
     * secCategoryName : 另类幻想
     */

    private int secCategoryId;
    private String secCategoryName;


    public int getSecCategoryId() {
        return secCategoryId;
    }

    public void setSecCategoryId(int secCategoryId) {
        this.secCategoryId = secCategoryId;
    }

    public String getSecCategoryName() {
        return secCategoryName;
    }

    public void setSecCategoryName(String secCategoryName) {
        this.secCategoryName = secCategoryName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.secCategoryId);
        dest.writeString(this.secCategoryName);
    }

    public SortSecBean() {
    }

    protected SortSecBean(Parcel in) {
        this.secCategoryId = in.readInt();
        this.secCategoryName = in.readString();
    }

    public static final Parcelable.Creator<SortSecBean> CREATOR = new Parcelable.Creator<SortSecBean>() {
        @Override
        public SortSecBean createFromParcel(Parcel source) {
            return new SortSecBean(source);
        }

        @Override
        public SortSecBean[] newArray(int size) {
            return new SortSecBean[size];
        }
    };
}
